home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / nn.zip / S-TEMPLA.H < prev    next >
C/C++ Source or Header  |  1989-12-31  |  4KB  |  191 lines

  1. /*
  2.  *    Use this file as a template for new s- files
  3.  */
  4.  
  5.  
  6. /*
  7.  *    Include header files containing the following definitions:
  8.  *
  9.  *         off_t, time_t, struct stat
  10.  */
  11.  
  12. #include <sys/types.h>
  13. #include <sys/stat.h>
  14.  
  15.  
  16. /*
  17.  *    Define if your system has system V like ioctls
  18.  */
  19.  
  20. #define    HAVE_TERMIO            /* */
  21.  
  22. /*
  23.  *    Define to use terminfo database.
  24.  *    Otherwise, termcap is used
  25.  */
  26.  
  27. #define    USE_TERMINFO            /* */
  28.  
  29. /*
  30.  *    Specify the library (or libraries) containing the termcap/terminfo
  31.  *    routines.
  32.  *
  33.  *    Notice:  nn only uses the low-level terminal access routines
  34.  *    (i.e. it does not use curses).
  35.  */
  36.  
  37. #define TERMLIB    -ltermlib
  38.  
  39. /*
  40.  *    Define HAVE_STRCHR if strchr() and strrchr() are available
  41.  */
  42.  
  43. #define HAVE_STRCHR            /* */
  44.  
  45. /*
  46.  *    Define if a signal handler has type void (see signal.h)
  47.  */
  48.  
  49. #define    SIGNAL_HANDLERS_ARE_VOID    /* */
  50.  
  51. /*
  52.  *    Define if signals must be set again after they are caught
  53.  */
  54.  
  55. #define    RESET_SIGNAL_WHEN_CAUGHT    /* */
  56.  
  57. /*
  58.  *    Define MICRO_ALARM to timeout in 0.1 seconds if possible
  59.  */
  60.  
  61. #define MICRO_ALARM()    alarm(1)    /* System V */
  62. /*#define MICRO_ALARM()    ualarm(100000,0)    /* BSD 4.3 */
  63.  
  64. /*
  65.  *    Define if your system has BSD like job control (SIGTSTP works)
  66.  */
  67.  
  68. /* #define HAVE_JOBCONTROL            /* */
  69.  
  70.  
  71. /*
  72.  *    Define if your system has a 4.3BSD like syslog library.
  73.  */
  74.  
  75. #undef HAVE_SYSLOG
  76.  
  77. /*
  78.  *    Define if your system provides the "directory(3X)" access routines
  79.  *
  80.  *    If true, include the header file(s) required by the package below
  81.  *    (remember that <sys/types.h> or equivalent is included above)
  82.  *    Also typedef Direntry to the proper struct type.
  83.  */
  84.  
  85. #define    HAVE_DIRECTORY            /* */
  86.  
  87. #include <dirent.h>            /* System V */
  88. /* #include <sys/dir.h>                /* BSD */
  89.  
  90. typedef struct dirent Direntry;        /* System V */
  91. /* typedef struct direct Direntry;        /* BSD */
  92.  
  93. /*
  94.  *    Define if your system has a mkdir() library routine
  95.  */
  96.  
  97. #define    HAVE_MKDIR            /* */
  98.  
  99.  
  100. /*
  101.  *    Define HAVE_GETHOSTNAME if your system provides a BSD like 
  102.  *    gethostname routine.
  103.  *    Otherwise, define HAVE_UNAME if uname() is avaiable.
  104.  *    As a final resort, define HOSTNAME to the name of your system 
  105.  *    (in config.h).
  106.  */
  107.  
  108. /* #define    HAVE_GETHOSTNAME    /* BSD systems */
  109.  
  110. #define    HAVE_UNAME            /* System V */
  111.  
  112. /*
  113.  *    Define HAVE_MULTIGROUP if system has simultaneous multiple group
  114.  *    membership capability (BSD style).
  115.  *    Also define NGROUPS or include the proper .h file if NGROUPS is
  116.  *    not defined in <sys/param.h>.
  117.  *    Also define GIDSET_TYPE to the type of the elements in the array
  118.  *    initialized by getgroups() if different from "int" (many systems 
  119.  *    have a gid_t, but very few use it for getgroups()).
  120.  */
  121.  
  122. /* #define HAVE_MULTIGROUP    /* BSD */
  123.  
  124. /*
  125.  *    Define DETATCH_TERMINAL to be a command sequence which 
  126.  *    will detatch a process from the control terminal
  127.  *    Also include system files needed to perform this HERE.
  128.  *    If not possible, just define it (empty)
  129.  */
  130.  
  131. /* #include "...." */
  132.  
  133. #define    DETATCH_TERMINAL /* setpgrp(); */
  134.  
  135.  
  136. /* 
  137.  *    Specify where the Bourne Shell is.
  138.  */
  139.  
  140. #define SHELL        "/bin/sh"
  141.  
  142. /*
  143.  *    Define AVOID_SHELL_EXEC if the system gets confused by
  144.  *        #!/bin/sh
  145.  *    lines in shell scripts, e.g. only reads #! and thinks it
  146.  *    is a csh script.
  147.  */
  148.  
  149. /* #define AVOID_SHELL_EXEC        /* */
  150.  
  151. /*
  152.  *    Specify the default mailer to be invoked by nnmail
  153.  */
  154.  
  155. #define    MAILX        "/usr/bin/mailx"    /* SV */
  156. /* #define    MAILX    "/usr/ucb/Mail"        /* BSD */
  157.  
  158.  
  159. /*
  160.  *    Specify the default pager & options.
  161.  */
  162.  
  163. #define    PAGER        "/usr/bin/pg -n -s"
  164.  
  165. /*
  166.  *    Specify the default print command and options.
  167.  */
  168.  
  169. #define    PRINTER        "/usr/bin/lp -s"
  170.  
  171.  
  172. /*
  173.  *    Define the maximum length of any pathname that may occur
  174.  */
  175.  
  176. #define    FILENAME     128
  177.  
  178.  
  179. /*
  180.  *    Define standard compiler flags here:
  181.  */
  182.  
  183. #define COMPILER_FLAGS
  184.  
  185. /*
  186.  *    If your system requires other libraries when linking nn
  187.  *    specify them here:
  188.  */
  189.  
  190. #define EXTRA_LIB
  191.